﻿import request from '/@/utils/request';
enum Api {
  AddBusSupplier = '/api/busSupplier/add',
  DeleteBusSupplier = '/api/busSupplier/delete',
  UpdateBusSupplier = '/api/busSupplier/update',
  PageBusSupplier = '/api/busSupplier/page',
  SyncBusSupplier = '/api/busSupplier/syncBusSupplier',
}

// 增加供货商
export const addBusSupplier = (params?: any) =>
	request({
		url: Api.AddBusSupplier,
		method: 'post',
		data: params,
	});

// 删除供货商
export const deleteBusSupplier = (params?: any) => 
	request({
			url: Api.DeleteBusSupplier,
			method: 'post',
			data: params,
		});

// 编辑供货商
export const updateBusSupplier = (params?: any) => 
	request({
			url: Api.UpdateBusSupplier,
			method: 'post',
			data: params,
		});

// 分页查询供货商
export const pageBusSupplier = (params?: any) => 
	request({
			url: Api.PageBusSupplier,
			method: 'post',
			data: params,
		});
		
//同步供货商		
export const getSyncBusSupplier = () =>
		request({
		url: Api.SyncBusSupplier,
		method: 'get'
		});

